//
//  HEAIMsgModel.h
//  HealthFamily
//
//  Created by 吴欧 on 2020/11/22.
//  Copyright © 2020 honglutec. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HEAISubItemModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, HEAIMsgType) {
    HEAIMsgTypeDiesaeConsult = 1 , // 疾病自诊
    HEAIMsgTypeAIText,
    HEAIMsgTypeUserText,
    HEAIMsgTypeAIMisson, // 猜您想找
    HEAIMsgTypeAISingleQuestion, // 单选题
    HEAIMsgTypeAIMultiQuestion, // 多选题
    HEAIMsgTypeAIReport, //
    HEAIMsgTypeAIFinish, //
    
    HEAIMsgTypeAIQuestion, //

};


@interface HEAIMsgModel : NSObject

@property (nonatomic, copy) NSString *uid;

@property (nonatomic, copy) NSString *headImage;

/// 消息类型
@property (nonatomic, assign) HEAIMsgType type;

/// 文本消息数据
@property (nonatomic, copy) NSString *content;

/// 子列表数据源
@property (nonatomic, strong) NSMutableArray <HEAISubItemModel *>*subDataArr;

/// 创建时间
@property (nonatomic, copy) NSString *createDate;

@property (nonatomic, assign) CGFloat subTableHeight;

@property (nonatomic, assign) CGFloat contentWidth;

/// 是否已答题
@property (nonatomic, assign) BOOL isFinish;

///  用户的答案
@property (nonatomic, copy) NSString *userAnswerContent;

@property (nonatomic, copy) NSString *inst_id;

- (CGFloat)getTableHeight:(UITableView *)tableView;

- (Class)getCellClass;

- (Class)getSubCellClass;

- (void)refreshData;

@end

NS_ASSUME_NONNULL_END
